import request from '@/utils/request'
let baseUrl = process.env.NODE_ENV === 'production' ? '/api/risk' : '/riskyf'
// 产品列表
export const getList = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/channel/list',
    method: 'post',
    data
  })
// 创建产品
export const create = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/channel/create',
    method: 'post',
    data
  })
// 修改
export const update = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/channel/update',
    method: 'post',
    data
  })
// 删除
export const del = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/channel/delete',
    method: 'post',
    data
  })
// 渠道字典
export const allChannel = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/channel/all-channel',
    method: 'post',
    data
  })
